package test00.test01;

/**
 * Lamba表达式实现
 * @Author lzp
 * @Date 2024-04-09
 */
public class test03 {
    public static void main(String[] args) {

        // Lamba表达式实现
//        YunSuan s = (int a,int b) -> {
//            return a + b;
//        };
        //简化
        YunSuan s = (a,b) ->  a + b;
        System.out.println(s.sum(100,200));

        YunSuan s1 = (a,b) -> b == 0 ? - 1 : a / b;
    }
}
